$(function(){
	$("#log-out").click(function(){
		//请求后台清楚session
		$.ajax({
			url:"/o2oSystem/local/logout",
			type:"post",
			async:false,
			cache:false,
			dataType:"json",
			success:function(data){
				if(data.success){
					var usertype = $("#log-out").attr("usertype");
					//清除成功后，退出到登录页面
					window.location.href="/o2oSystem/local/login?usertype="+usertype;
					return false; 
				}
			}
		});
	});
})